package pers.ddx.rest.blog1.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.ddx.rest.blog1.entity.User;
import pers.ddx.rest.blog1.entity.UserExample;
import pers.ddx.rest.blog1.mapper.UserMapper;
import pers.ddx.rest.blog1.service.UserService;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUser() {
        UserExample example = new UserExample();
        UserExample.Criteria criteria = example.createCriteria();

        return userMapper.selectByExample(example);
    }
}
